<template>
    <div>
        <template v-for="(index, item) in roles">
            <el-checkbox v-model="item.name" :key="index" :label="item.roleName" border checked></el-checkbox>
        </template>
    </div>
</template>

<script>
    import { mapGetters } from 'vuex'
    export default {
        name: "my-role",
        computed: {
            ...mapGetters(['roles'])
        }
    }
</script>

<!-- 局部样式 -->
<style rel="stylesheet/scss" lang="scss" scoped>

</style>
